package com.universe;

import java.util.List;

/**
 * @author sad
 */
public class WheelList {

    private List<Wheel> wheels;

    public List<Wheel> getWheels() {
        return wheels;
    }

    public void setWheels(List<Wheel> wheels) {
        this.wheels = wheels;
    }

    public Wheel getWheelForUniverse(int index) {
        if (wheels != null) {
            for (Wheel w : wheels) {
                if (w.getUniverseIndex() == index) {
                    return w;
                }
            }
        }

        return null;
    }

}
